package cn.imvc.app.models;

import java.util.List;

import cn.imvc.app.entities.Activity;

public interface ActivityModel {
	List<Object[]> getActivitiesInfoByOrderAmount(Integer orderAmount);

	List<Object[]> getGoodsInfoByActivityId(Integer activityId);
	
	Activity getOne(Integer activityId);
	/**
	 * 根据订单金额，检查该活动是否适用
	 * @param goodsAmount
	 * @param activityId
	 * @return
	 */
	boolean checkIsValid(int goodsAmount, Integer activityId);
}
